<?php

namespace App\Http\Controllers\Finance;

use App\Models\Finance\Condition;
use App\Http\Controllers\Controller;
use App\Http\Requests\Logic\Condition\DestroyResource;

/**
 * 条件管理
 *
 * Date: 2018/6/8
 * @author George
 * @package App\Http\Controllers\Finance
 */
class ConditionController extends Controller
{
	/**
	 * 删除模板条件
	 *
	 * Date: 2018/6/11
	 * @author George
	 * @param DestroyResource $request
	 * @param Condition $condition
	 * @return \Illuminate\Http\JsonResponse
	 * @throws \Exception
	 */
	public function destroy(DestroyResource $request, Condition $condition)
	{
		$condition->delete();
		return deleted();
	}
}
